package pers.amos.edu.pojo;

import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @author amos wong
 * @create 2020-02-01 18:59
 */


@Table(name = "tb_school")
public class School {
    @Id
    @KeySql(useGeneratedKeys = true)
    /**
     * 学校的代码 比如北京大学是10001
     */
    private Integer id;
    /**
     * 学校所属地区
     */
    private String region;
    /**
     * 学校的名称
     */
    private String name;

    @Transient
    private Integer collectionStatus = 0;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCollectionStatus() {
        return collectionStatus;
    }

    public void setCollectionStatus(Integer collectionStatus) {
        this.collectionStatus = collectionStatus;
    }
}
